import request from "./request.js"
//示例
// export function orderprepay(data) {
// 	return request.post('url', data)
// }
// 
// export function getEnovation(data) {
// 	return request.get('url', data)
// }
export function init(data) {
	return request.get('doctor/init', data)
}
// 我的足迹
export function trace(data) {
	return request.get('user/trace', data)
}
// 地址管理
export function address(data) {
	return request.get('user/address', data)
}
// 添加地址
export function addressAdd(data) {
	return request.post('user/address/handle', data)
}
// 签到列表
export function checkin(data) {
	return request.get('user/checkin', data)
}
// 签到日历
export function calendar(data) {
	return request.get('user/checkin/calendar', data)
}
// 签到
export function handle(data) {
	return request.post('user/checkin/handle', data)
}
// 关注医生列表
export function follow(data) {
	return request.get('user/follow?size=10', data)
}

/* 关注 */
export function doctorHandle(data) {
	return request.post('user/follow/handle', data)
}
// 连续签到天数
export function checkInfo(data) {
	return request.get('user/checkin/info', data)
}
// 全部评价
export function comment(data) {
	return request.get('user/comment', data)
}
// 就诊人列表
export function partner(data) {
	return request.get('user/partner', data)
}
// 新增问诊
export function consultationHandle(data) {
	return request.post('user/consultation/handle', data)
}
// 症状列表
export function symptoms(data) {
	return request.get('common/symptom', data)
}
// 消息列表
export function message(data) {
	return request.get('user/message', data)
}
// 会诊详情
export function chat_content(data) {
	return request.get('doctor/chat_content', data)
}

// 意见反馈
export function feedback(data) {
	return request.post('user/feedback/handle', data)
}
// 获取地址
export function options(data) {
	return request.get('user/address/options', data)
}
// 系统配置
export function config(data) {
	return request.get('common/config', data)
}
// 会诊订单详情
export function conDetail(data) {
	return request.get('user/consultation/detail', data)
}
// 送礼物
export function send(data) {
	return request.post('user/doctor/send', data)
}
// 礼物列表
export function gifts(data) {
	return request.get('common/gift', data)
}
// 赠送记录
export function gift(data) {
	return request.get('xia/user/gifts', data)
}
// 科室
export function department(data) {
	return request.get('common/department', data)
}
//评价
export function conComment(data) {
	return request.post('user/consultation/comment', data)
}
// 清空足迹
export function traceClear(data) {
	return request.post('user/trace/clear', data)
}
// 搜索历史
export function history(data) {
	return request.get('common/history', data)
}
// 修改个人信息
export function update(data) {
	return request.post('user/update', data)
}
// 购物车
export function cart(data) {
	return request.get('user/cart', data)
}
// 商城分类
export function cate(data) {
	return request.get('user/shop_goods/cate', data)
}
//商城商品列表
export function shop_goods(data) {
	return request.get('user/shop_goods', data)
}
//商品详情
export function shopdetail(data) {
	return request.get('user/shop_goods/detail', data)
}
// 积分商城
export function score_goods(data) {
	return request.get('user/score_goods', data)
}
// 积分商城详情
export function score_goods_detail(data) {
	return request.get('user/score_goods/detail', data)
}
// 商品订单
export function goods_order(data) {
	return request.get('user/goods_order', data)
}
// 订单详情
export function goodsorderdetail(data) {
	return request.get('user/goods_order/detail', data)
}
// 取消订单
export function goodscancel(data) {
	return request.post('user/goods_order/cancel',data)
}
// 删除订单
export function goodsdel(data) {
	return request.post('user/goods_order/del',data)
}
// 确认收货
export function goodsreceive(data) {
	return request.post('user/goods_order/receive',data)
}
// 查看物流
export function goodsorderlogistics(data) {
	return request.post('user/goods_order/logistics',data)
}
// 申请退货
export function goodsrefund(data) {
	return request.post('user/goods_order_refund/handle',data)
}
//评价订单 {{url}}/
export function goodscomment(data) {
	return request.post('user/goods_order/comment',data)
}
//获取评价
export function getcomment(data) {
	return request.get('user/score_goods/comment',data)
}
export function getcomment2(data) {
	return request.get('user/shop_goods/comment',data)
}
// 商品列表
export function getSearch(pathName,data) {
	return request.get('user/'+pathName, data)
}
//加入购物车
export function addshopcar(data) {
	return request.post('user/cart/add',data)
}
//修改购物车
export function updatecar(data) {
	return request.post('user/cart/update',data)
}
// 删除购物车
export function delcar(data) {
	return request.post('user/cart/del',data)
}
//下单
export function shophandle(data) {
	return request.post('user/goods_order/handle',data)
}
// 下单
export function scorehandle(data) {
	return request.post('user/score_order/handle',data)
}
//删除就诊人{{url}}
export function partnerDel(data) {
	return request.post('user/partner/del',data)
}
//取消订单
export function cancelOrder(data) {
	return request.post('user/consultation/cancel',data)
}
// 支付
export function pays(data) {
	return request.post('user/pay', data)
}
// 评价
export function commenthuizhen(data) {
	return request.post('user/consultation/comment',data)
}
// 积分商城订单
export function score_order(data) {
	return request.get('user/score_order', data)
}
// 订单详情
export function scoreorderdetail(data) {
	return request.get('user/score_order/detail',data)
}
// 评价标签 
export function comment_tag(data) {
	return request.get('common/comment_tag',data)
}
// 查看物流
export function scorelogistics(data) {
	return request.post('user/score_order/logistics',data)
}
// 取消订单
export function scorecancel(data) {
	return request.post('user/score_order/cancel',data)
}
// 删除订单
export function scoredel(data) {
	return request.post('user/score_order/del',data)
}
// 确认收货
export function scorereceive(data) {
	return request.post('user/score_order/receive',data)
}
// 退货
export function scorerefund(data) {
	return request.post('user/score_order_refund/handle',data)
}
//评价订单 
export function scorecomment(data) {
	return request.post('user/score_order/comment',data)
}
//清除消息列表 小红点
export function del_unread(data) {
	return request.post('doctor/del_unread',data)
}
// 获取医院列表
export function getHospitalList(data) {
	return request.get('user/hospital/list', data)
}
// 获取医院详情
export function getHospitalInfo(data) {
	return request.get('user/hospital/info', data)
}

// 获取服务列表
export function getPzServiceList(data) {
	return request.get('user/pz_service/list', data)
}

// 获取服务详情
export function getPzServiceInfo(data) {
	return request.get('user/pz_service/info', data)
}

// 获取服务评论列表
export function getCommentList(data) {
	return request.get('user/pz_service/comment/list', data)
}

// 获取科室列表
export function departmentList() {
	return request.get('common/department')
}

// 服务下单
export function addOrder(data) {
	return request.post('user/pz_order/add', data)
}

// 获取订单列表
export function pzOrderList(data) {
	return request.get('user/pz_order/list', data)
}

// 获取订单详情
export function pzOrderDetail(data) {
	return request.get('user/pz_order/detail', data)
}

// 获取医院医生
export function getDoctorList(data) {
	return request.get('user/hospital/doctor', data)
}
